package cn.yedong.user.mapper;

import cn.yedong.user.domain.User;
import cn.yedong.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yedong
 * @since 2023-02-07
 */
public interface UserMapper extends BaseMapper<User> {
    //重复注册校验：根据手机号查询User
    User findByPhone(String phone);
    //重复注册校验：根据邮箱查询User
    User findByEmail(String email);
    //根据登录信息id查询user
    User findByLogininfoId(Long id);
}
